import type { App } from "vue"
import SvgIcon from "./SvgIcon/Index.vue"
import Pagination from "./Pagination/Index.vue"
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
const allComponents = {
    SvgIcon,
    Pagination,
}

export default {
    install(app: App) {
        Object.entries(allComponents).forEach(([key, value]) => {
            app.component(key, value)
        })

        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    },
}
